const { DataTypes } = require('sequelize')

const seq = require('../db/seq')


//创建user模型（建表）
const Store = seq.define('store', {
	store_name: {
		type: DataTypes.STRING,
		allowNull: false,
		comment: '窗口名字'
	},
	store_address: {
		type: DataTypes.STRING,
		allowNull: false,
		comment: '窗口地址'
	},
	store_director: {
		type: DataTypes.STRING,
		allowNull: false,
		comment: '负责人'
	},
	foods: {
		type: DataTypes.ARRAY,
		allowNull: true,
		comment: '所有食物'
	}
})
//强制同步数据库(创建数据表)
Store.sync();

module.exports = Store